<?php

namespace app\common\model;

use think\Model;

class Cart extends Model{
    protected $table='pre_cart';

    // 关联查询
    public function product(){
        return $this->belongsTo('app\common\model\Product\Product','proid','id',[],'LEFT')->setEagerlyType(0);
    }
}